import request from '@/utils/request'

// 获取权限列表
export const reqGetgetPermissionList = () => request({
  url: '/sys/permission'
})

// 新增权限
export const reqAddPermission = (data) => request({
  method: 'post',
  url: '/sys/permission',
  data
})

// 编辑权限
export const reqUpdatePermission = (data) => request({
  method: 'put',
  url: `/sys/permission/${data.id}`,
  data
})

// 获取权限详情

export const reqGetPermission = (id) => request({
  url: `/sys/permission/${id}`
})

// 删除权限点
export const reqDelPermission = (id) => request({
  method: 'delete',
  url: `/sys/permission/${id}`
})

